require('../css/advertisement.css');
let countBox = document.querySelector(".countBox");
let skipText = document.querySelector('.skipText');
let num = 5
let t = setInterval(function () {
    num--
    countBox.disabled = true
    countBox.innerHTML = num + "s";
    if (num == 0) {
        clearInterval(t)
        location.href = './register.html'
        countBox.disabled = false
    }
}, 1000)

skipText.addEventListener('click', function () {
    location.href = './register.html'
})